<?xml version="1.0" encoding="ascii"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>pytils.test</title>
  <link rel="stylesheet" href="epydoc.css" type="text/css" />
  <script type="text/javascript" src="epydoc.js"></script>
</head>

<body bgcolor="white" text="black" link="blue" vlink="#204080"
      alink="#204080">
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="pytils-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

      <th class="navbar" width="100%"></th>
  </tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td width="100%">
      <span class="breadcrumbs">
        <a href="pytils-module.html">Package&nbsp;pytils</a> ::
        Package&nbsp;test
      </span>
    </td>
    <td>
      <table cellpadding="0" cellspacing="0">
        <!-- hide/show private -->
        <tr><td align="right"><span class="options">[<a href="javascript: void(0);" class="privatelink"
    onclick="toggle_private();">hide private</a>]</span></td></tr>
        <tr><td align="right"><span class="options"
            >[<a href="frames.html" target="_top">frames</a
            >]&nbsp;|&nbsp;<a href="pytils.test-pysrc.html"
            target="_top">no&nbsp;frames</a>]</span></td></tr>
      </table>
    </td>
  </tr>
</table>
<h1 class="epydoc">Source Code for <a href="pytils.test-module.html">Package pytils.test</a></h1>
<pre class="py-src">
<span class="py-lineno"> 1</span>  <span class="py-line"><span class="py-comment"># -*- coding: utf-8 -*-</span> </span>
<span class="py-lineno"> 2</span>  <span class="py-line"><span class="py-comment"></span><span class="py-comment"># License: GNU GPL2</span> </span>
<span class="py-lineno"> 3</span>  <span class="py-line"><span class="py-comment"></span><span class="py-comment"># Author: Pythy &lt;the.pythy@gmail.com&gt;</span> </span>
<span class="py-lineno"> 4</span>  <span class="py-line"><span class="py-comment"></span><span class="py-docstring">"""</span> </span>
<span class="py-lineno"> 5</span>  <span class="py-line"><span class="py-docstring">Unit tests for pytils</span> </span>
<span class="py-lineno"> 6</span>  <span class="py-line"><span class="py-docstring">"""</span> </span>
<span class="py-lineno"> 7</span>  <span class="py-line"> </span>
<span class="py-lineno"> 8</span>  <span class="py-line"><span id="link-0" class="py-name"><a title="pytils.__id__
pytils.dt.__id__
pytils.numeral.__id__
pytils.templatetags.__id__
pytils.templatetags.pytils_dt.__id__
pytils.templatetags.pytils_numeral.__id__
pytils.templatetags.pytils_translit.__id__
pytils.test.__id__
pytils.test.test_dt.__id__
pytils.test.test_numeral.__id__
pytils.test.test_translit.__id__
pytils.test.test_utils.__id__
pytils.translit.__id__
pytils.utils.__id__" class="py-name" href="#" onclick="doclink('link-0', '__id__', 'Variable pytils.__id__=pytils-module.html#__id__,Variable pytils.dt.__id__=pytils.dt-module.html#__id__,Variable pytils.numeral.__id__=pytils.numeral-module.html#__id__,Variable pytils.templatetags.__id__=pytils.templatetags-module.html#__id__,Variable pytils.templatetags.pytils_dt.__id__=pytils.templatetags.pytils_dt-module.html#__id__,Variable pytils.templatetags.pytils_numeral.__id__=pytils.templatetags.pytils_numeral-module.html#__id__,Variable pytils.templatetags.pytils_translit.__id__=pytils.templatetags.pytils_translit-module.html#__id__,Variable pytils.test.__id__=pytils.test-module.html#__id__,Variable pytils.test.test_dt.__id__=pytils.test.test_dt-module.html#__id__,Variable pytils.test.test_numeral.__id__=pytils.test.test_numeral-module.html#__id__,Variable pytils.test.test_translit.__id__=pytils.test.test_translit-module.html#__id__,Variable pytils.test.test_utils.__id__=pytils.test.test_utils-module.html#__id__,Variable pytils.translit.__id__=pytils.translit-module.html#__id__,Variable pytils.utils.__id__=pytils.utils-module.html#__id__'); return false;">__id__</a></span></span> <span class="py-op">=</span> <span id="link-1" class="py-name"><a title="pytils.__revision__
pytils.dt.__revision__
pytils.numeral.__revision__
pytils.templatetags.__revision__
pytils.templatetags.pytils_dt.__revision__
pytils.templatetags.pytils_numeral.__revision__
pytils.templatetags.pytils_translit.__revision__
pytils.test.__revision__
pytils.test.test_dt.__revision__
pytils.test.test_numeral.__revision__
pytils.test.test_translit.__revision__
pytils.test.test_utils.__revision__
pytils.translit.__revision__
pytils.utils.__revision__" class="py-name" href="#" onclick="doclink('link-1', '__revision__', 'Variable pytils.__revision__=pytils-module.html#__revision__,Variable pytils.dt.__revision__=pytils.dt-module.html#__revision__,Variable pytils.numeral.__revision__=pytils.numeral-module.html#__revision__,Variable pytils.templatetags.__revision__=pytils.templatetags-module.html#__revision__,Variable pytils.templatetags.pytils_dt.__revision__=pytils.templatetags.pytils_dt-module.html#__revision__,Variable pytils.templatetags.pytils_numeral.__revision__=pytils.templatetags.pytils_numeral-module.html#__revision__,Variable pytils.templatetags.pytils_translit.__revision__=pytils.templatetags.pytils_translit-module.html#__revision__,Variable pytils.test.__revision__=pytils.test-module.html#__revision__,Variable pytils.test.test_dt.__revision__=pytils.test.test_dt-module.html#__revision__,Variable pytils.test.test_numeral.__revision__=pytils.test.test_numeral-module.html#__revision__,Variable pytils.test.test_translit.__revision__=pytils.test.test_translit-module.html#__revision__,Variable pytils.test.test_utils.__revision__=pytils.test.test_utils-module.html#__revision__,Variable pytils.translit.__revision__=pytils.translit-module.html#__revision__,Variable pytils.utils.__revision__=pytils.utils-module.html#__revision__'); return false;">__revision__</a></span></span> <span class="py-op">=</span> <span class="py-string">"$Id: __init__.py 11 2006-09-28 17:45:00Z the.pythy $"</span> </span>
<span class="py-lineno"> 9</span>  <span class="py-line"><span id="link-2" class="py-name"><a title="pytils.__url__
pytils.dt.__url__
pytils.numeral.__url__
pytils.templatetags.__url__
pytils.templatetags.pytils_dt.__url__
pytils.templatetags.pytils_numeral.__url__
pytils.templatetags.pytils_translit.__url__
pytils.test.__url__
pytils.test.test_dt.__url__
pytils.test.test_numeral.__url__
pytils.test.test_translit.__url__
pytils.test.test_utils.__url__
pytils.translit.__url__
pytils.utils.__url__" class="py-name" href="#" onclick="doclink('link-2', '__url__', 'Variable pytils.__url__=pytils-module.html#__url__,Variable pytils.dt.__url__=pytils.dt-module.html#__url__,Variable pytils.numeral.__url__=pytils.numeral-module.html#__url__,Variable pytils.templatetags.__url__=pytils.templatetags-module.html#__url__,Variable pytils.templatetags.pytils_dt.__url__=pytils.templatetags.pytils_dt-module.html#__url__,Variable pytils.templatetags.pytils_numeral.__url__=pytils.templatetags.pytils_numeral-module.html#__url__,Variable pytils.templatetags.pytils_translit.__url__=pytils.templatetags.pytils_translit-module.html#__url__,Variable pytils.test.__url__=pytils.test-module.html#__url__,Variable pytils.test.test_dt.__url__=pytils.test.test_dt-module.html#__url__,Variable pytils.test.test_numeral.__url__=pytils.test.test_numeral-module.html#__url__,Variable pytils.test.test_translit.__url__=pytils.test.test_translit-module.html#__url__,Variable pytils.test.test_utils.__url__=pytils.test.test_utils-module.html#__url__,Variable pytils.translit.__url__=pytils.translit-module.html#__url__,Variable pytils.utils.__url__=pytils.utils-module.html#__url__'); return false;">__url__</a></span></span> <span class="py-op">=</span> <span class="py-string">"$URL: https://pythy.googlecode.com/svn/trunk/pytils/pytils/test/__init__.py $"</span> </span>
<span class="py-lineno">10</span>  <span class="py-line"><span class="py-name">__all__</span> <span class="py-op">=</span> <span class="py-op">[</span><span class="py-string">"test_numeral"</span><span class="py-op">,</span> <span class="py-string">"test_dt"</span><span class="py-op">,</span> <span class="py-string">"test_translit"</span><span class="py-op">,</span> <span class="py-string">"test_utils"</span><span class="py-op">]</span> </span>
<span class="py-lineno">11</span>  <span class="py-line"> </span>
<span class="py-lineno">12</span>  <span class="py-line"><span class="py-keyword">import</span> <span class="py-name">unittest</span> </span>
<span class="py-lineno">13</span>  <span class="py-line"> </span>
<a name="get_suite"></a><div id="get_suite-def"><span class="py-lineno">14</span> <a class="py-toggle" href="#" id="get_suite-toggle" onclick="toggle('get_suite'); return false;">-</a><span class="py-line"><span class="py-keyword">def</span> <a class="py-def-name" href="pytils.test-module.html#get_suite">get_suite</a><span class="py-op">(</span><span class="py-op">)</span><span class="py-op">:</span> </span>
</div><div id="get_suite-collapsed" style="display:none;" pad="++" indent="++++"></div><div id="get_suite-expanded"><span class="py-lineno">15</span>  <span class="py-line">    <span class="py-docstring">"""Return TestSuite for all unit-test of PyTils"""</span> </span>
<span class="py-lineno">16</span>  <span class="py-line">    <span class="py-name">suite</span> <span class="py-op">=</span> <span class="py-name">unittest</span><span class="py-op">.</span><span class="py-name">TestSuite</span><span class="py-op">(</span><span class="py-op">)</span> </span>
<span class="py-lineno">17</span>  <span class="py-line">    <span class="py-keyword">for</span> <span class="py-name">module_name</span> <span class="py-keyword">in</span> <span class="py-name">__all__</span><span class="py-op">:</span> </span>
<span class="py-lineno">18</span>  <span class="py-line">        <span class="py-name">imported_module</span> <span class="py-op">=</span> <span class="py-name">__import__</span><span class="py-op">(</span><span class="py-string">"pytils.test."</span><span class="py-op">+</span><span class="py-name">module_name</span><span class="py-op">,</span> </span>
<span class="py-lineno">19</span>  <span class="py-line">                                       <span class="py-name">globals</span><span class="py-op">(</span><span class="py-op">)</span><span class="py-op">,</span> </span>
<span class="py-lineno">20</span>  <span class="py-line">                                       <span class="py-name">locals</span><span class="py-op">(</span><span class="py-op">)</span><span class="py-op">,</span> </span>
<span class="py-lineno">21</span>  <span class="py-line">                                       <span class="py-op">[</span><span class="py-string">"pytils.test"</span><span class="py-op">]</span><span class="py-op">)</span> </span>
<span class="py-lineno">22</span>  <span class="py-line">        <span class="py-name">loader</span> <span class="py-op">=</span> <span class="py-name">unittest</span><span class="py-op">.</span><span class="py-name">defaultTestLoader</span> </span>
<span class="py-lineno">23</span>  <span class="py-line">        <span class="py-name">suite</span><span class="py-op">.</span><span class="py-name">addTest</span><span class="py-op">(</span><span class="py-name">loader</span><span class="py-op">.</span><span class="py-name">loadTestsFromModule</span><span class="py-op">(</span><span class="py-name">imported_module</span><span class="py-op">)</span><span class="py-op">)</span> </span>
<span class="py-lineno">24</span>  <span class="py-line"> </span>
<span class="py-lineno">25</span>  <span class="py-line">    <span class="py-keyword">return</span> <span class="py-name">suite</span> </span>
</div><span class="py-lineno">26</span>  <span class="py-line"> </span>
<a name="run"></a><div id="run-def"><span class="py-lineno">27</span> <a class="py-toggle" href="#" id="run-toggle" onclick="toggle('run'); return false;">-</a><span class="py-line"><span class="py-keyword">def</span> <a class="py-def-name" href="pytils.test-module.html#run">run</a><span class="py-op">(</span><span class="py-param">verbosity</span><span class="py-op">=</span><span class="py-number">1</span><span class="py-op">)</span><span class="py-op">:</span> </span>
</div><div id="run-collapsed" style="display:none;" pad="++" indent="++++"></div><div id="run-expanded"><span class="py-lineno">28</span>  <span class="py-line">    <span class="py-docstring">"""Run all unit-test of PyTils"""</span> </span>
<span class="py-lineno">29</span>  <span class="py-line">    <span class="py-name">suite</span> <span class="py-op">=</span> <span id="link-3" class="py-name"><a title="pytils.test.get_suite" class="py-name" href="#" onclick="doclink('link-3', 'get_suite', 'Function pytils.test.get_suite()=pytils.test-module.html#get_suite'); return false;">get_suite</a></span></span><span class="py-op">(</span><span class="py-op">)</span> </span>
<span class="py-lineno">30</span>  <span class="py-line">    <span class="py-name">unittest</span><span class="py-op">.</span><span class="py-name">TextTestRunner</span><span class="py-op">(</span><span class="py-name">verbosity</span><span class="py-op">=</span><span class="py-name">verbosity</span><span class="py-op">)</span><span class="py-op">.</span><span id="link-4" class="py-name"><a title="pytils.test.run" class="py-name" href="#" onclick="doclink('link-4', 'run', 'Function pytils.test.run()=pytils.test-module.html#run'); return false;">run</a></span></span><span class="py-op">(</span><span class="py-name">suite</span><span class="py-op">)</span> </span>
</div><span class="py-lineno">31</span>  <span class="py-line"> </span>
<span class="py-lineno">32</span>  <span class="py-line"><span class="py-keyword">if</span> <span class="py-name">__name__</span> <span class="py-op">==</span> <span class="py-string">'__main__'</span><span class="py-op">:</span> </span>
<span class="py-lineno">33</span>  <span class="py-line">    <span id="link-5" class="py-name"><a title="pytils.test.run" class="py-name" href="#" onclick="doclink('link-5', 'run', 'Function pytils.test.run()=pytils.test-module.html#run'); return false;">run</a></span></span><span class="py-op">(</span><span class="py-number">2</span><span class="py-op">)</span> </span>
<span class="py-lineno">34</span>  <span class="py-line"> </span><script type="text/javascript">
<!--
expandto(location.href);
// -->
</script>
</pre>
<br />
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="pytils-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

      <th class="navbar" width="100%"></th>
  </tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
  <tr>
    <td align="left" class="footer">Generated by Epydoc
        3.0alpha3 on Sun Oct 29 00:35:03 2006</td>
    <td align="right" class="footer">
      <a href="http://epydoc.sourceforge.net">http://epydoc.sourceforge.net</a>
    </td>
  </tr>
</table>

<script type="text/javascript">
  <!--
  // Private objects are initially displayed (because if
  // javascript is turned off then we want them to be
  // visible); but by default, we want to hide them.  So hide
  // them unless we have a cookie that says to show them.
  checkCookie()
  // -->
</script>
  
</body>
</html>
